package com.evildog.workspace.system.application.enums;

import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回前端状态码
 */
@AllArgsConstructor
@Getter
public enum SystemCustomExceptionDesc implements ICustomExceptionDesc {


    /* ============================     custom status code    =================================================  */

    USER_NOT_FOUND("B115001", "用户不存在", "用户不存在"),
    USER_DISABLED("B115002", "用户已禁用", "用户已禁用"),
    MENU_LIST_EMPTY("B115003", "用户没有关联菜单", "用户没有关联菜单"),
    INVALID_UI_TYPE("B115005", "错误的UI类型", "错误的UI类型"),
    DUPLICATION_ACCOUNT("B115006", "重复的account", "重复的account"),
    TWO_PASSWORD_NOT_EQ("B115007", "密码和确认密码不一致", "密码和确认密码不一致"),
    ORIGINAL_PASSWORD_ERROR("B115008", "原密码错误", "原密码错误"),
    MISSING_SYS_SERVICE("B115008", "缺少sys service配置", "缺少sys service配置"),

    ;


    /**
     * 状态码
     */
    private String code;
    /**
     * 信息，前端展示信息
     */
    private String message;

    /**
     * 描述
     */
    private String description;


}
